package com.zys.el.time.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("分页")
public class Page<T> {
    @ApiModelProperty("页码")
    private Integer page;

    @ApiModelProperty("数据")
    private List<T> records;

    @ApiModelProperty("页大小")
    private Integer size;

    @ApiModelProperty("数据量")
    private Integer count;

}
